from time import time
def bubble(name):
    n = time()
    with open (name) as r:
        b[]
        for line in b:
            a.append([int(x) for x in line.split()])


for u in range(len(b)):
    for i in range(len(b)-u-1):
        if b[i] > b[i+1]:
            b[i], b[i+1] = b[i+1], b[i]


print(b)
k = time()
w = k - n
print(name, w)

bubble ("m1_sorted.txt")
bubble ("m2_reverse.txt")
bubble ("m3_shuffle.txt")
